//
//  CircleMineTitleImageCell.m
//  GLGW_Shoping
//
//  Created by whx on 2018/12/3.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "CircleMineTitleImageCell.h"

@implementation CircleMineTitleImageCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.textLabel.text = @"sfsdfsdfasdfs";
        self.textLabel.font = [UIFont systemFontOfSize:16];
        self.textLabel.textColor = [UIColor colorWithHexString:@"#333333"];
        
        self.imageView.layer.masksToBounds = YES;
        self.imageView.layer.cornerRadius = 59/2;
        self.accessoryView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"jiantou"]];
//        self.accessoryView.backgroundColor = kRandomColor;
//        self.showPush = YES;
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    CGRect adjustedFrame = self.imageView.frame;
    adjustedFrame.origin.y = 16.0f;
    adjustedFrame.size.width = 59;
    adjustedFrame.size.height = 59;
    self.imageView.frame = adjustedFrame;
    
    self.imageView.layer.masksToBounds = YES;
    self.imageView.layer.cornerRadius = 59/2;
    
    CGRect adjustedFrame2 = self.textLabel.frame;
    adjustedFrame2.origin.x = kX_With_View(self.imageView, 16);
    self.textLabel.frame = adjustedFrame2;
}


@end
